<template>
    <div>
        <a-modal
            :title="currentData.modalTitle"
            :visible="visible"
            :okText="currentData.okText?currentData.okText:'确定'"
            @ok="handleOk"
            @cancel="visible = false"
        >
            <a-textarea 
                :placeholder="'请输入'+(currentData.messageText?currentData.messageText:'原因')"
                v-model:value="currentData.opinion"
                :autosize="{ minRows: 3, maxRows: 10000 }"
            ></a-textarea>
        </a-modal>
    </div>
</template>
<script>
export default {
    components:{

    },
    props:{

    },
    data(){
        return{
            currentData:{},
            visible:false,
        }
    },
    watch:{

    },
    mounted(){
        
    },
    methods:{
        getData(row){
            this.currentData = row
        },
        handleOk(){
            if(this.currentData.opinion){
                this.$emit('fillFeasonSuccess',this.currentData)
            }else{
                this.$message.warning('请输入'+(this.currentData.messageText?this.currentData.messageText:'原因'))
            }
            
        },
    }
}
</script>